package com.cxc.entity;

import com.cxc.visit.Visit;

public class Orange  implements Fruite {
    private String name = "";
    private int price = 70;

    public Orange() {
    }

    public Orange(String name) {
        this.name = name;
    }

    public Orange(String name, int price) {
        this.name = name;
        this.price = price;
    }

    public int getPrice() {
        return price;
    }

    public int price() {
        return price;
    }

    public void draw() {
        System.out.print("砂糖桔");
    }

    public int accept(Visit visit) {
        return visit.sell(this);
    }
}
